<div class="span4 leadModal">
<div class="bookNowBox radius4px addmarginB20">
<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'contactus-form',
'enableClientValidation' => true,
'clientOptions' => array(
'validateOnSubmit' => true,
'validateOnChange' => true,
'enableAjaxValidation' => true,
),
));
?>
					<div class="formElements">
                        <div class="padding20px">
                            <div class="common">
                                <h3 class="remmarginT font-opensanslt txtfff fnt-size18 linHnml addpaddingB10">Contact Us</h3>
								<!--<label for="MakeQuery_name">Name <span class="required">*</span></label>-->
								     <?php echo $form->textField($model, 'name', array('maxlength' => 45,'class' => 'field','placeholder' => 'Name*')); ?>
									 <?php echo $form->error($model,'name'); ?>                              
                            </div>
                            <div class="common">
                             <!--<label for="MakeQuery_name">Email <span class="required">*</span></label>-->
								     <?php echo $form->textField($model, 'email', array('class' => 'field','placeholder' => 'Email*')); ?>
									 <?php echo $form->error($model,'email'); ?> 
                            </div>
							<div class="common">
                             <!--<label for="MakeQuery_name">Subject <span class="required">*</span></label>-->
								     <?php echo $form->textField($model, 'subject', array('class' => 'field','placeholder' => 'Subject*')); ?>
									 <?php echo $form->error($model,'subject'); ?> 
                            </div>                                                  
                            <div class="common">
                             <!--<label for="MakeQuery_name">Subject <span class="required">*</span></label>-->
									 <?php echo $form->textArea($model, 'message', array('placeholder' => 'Message*')); ?>
									 <?php echo $form->error($model,'message'); ?>
                            </div>                                                  

							<div class="common">
                                <div class="height1px borB rempaddingB"></div>
                            </div>
						<div id="AjaxLoader" style="margin: 0 auto;width: 50%;display: none;"><img src="<?php echo ThemePath(); ?>/images/ajax-loader.gif"></img></div>
							<p id="AjaxLoader-formResult" style="font-size: 15px;color: #fff;display: none;"></p>
                            <p class="alignR remmarginB">
							<?php echo CHtml::ajaxSubmitButton('Submit', CHtml::normalizeUrl(array('site/contact')), array(
		   'dataType' => 'json',
            'type' => 'post',
            'success' => 'function(data) {
                        $("#AjaxLoader").hide();  
						 if(data.status=="success"){
                        $("#AjaxLoader-formResult").show();
                        $("#AjaxLoader-formResult").html("Thank you for contacting us. We will respond to you as soon as possible.");
						$(".alignR").html("&nbsp;");
                        } else{
                         $.each(data, function(key, val) {   
                        $("#"+key+"_em_").text(val);                                                    
                        $("#"+key+"_em_").show();
                        });
                        }
                    }',
            'beforeSend' => 'function(){                        
                           $("#AjaxLoader").show();
                      }'
                ), array('class' => 'btnbook',));?>
                           </p>
                        </div>
                    </div>
					<?php
					$this->endWidget();
					?>
                </div>
				</div>